﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DrawIO45.Models.DrawIOs
{
    /// <summary>
    /// 位置信息
    /// </summary>
    public class DILocationInfo
    {
        /// <summary>
        /// 位置
        /// </summary>
        public DIPoint Point { get; set; }

        /// <summary>
        /// 大小
        /// </summary>
        public DISize Size { get; set; }
    }

    public class DILocationInfo<T> : DILocationInfo
    {
        /// <summary>
        /// 对象
        /// </summary>
        public T Object { get; set; }

        public DILocationInfo() { }

        public DILocationInfo(DIPoint point, DISize size, T obj)
        {
            Point = point;
            Size = size;
            Object = obj;
        }
    }

    public class DIPoint
    {
        public int X { get; set; }

        public int Y { get; set; }
    }

    public class DISize
    {
        public int Width { get; set; }

        public int Height { get; set; }

        public DISize() { }

        public DISize(int width, int height)
        {
            Width = width;
            Height = height;
        }
    }
}
